@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-lg-2 col-sm-3">
                                <div class="panel panel-default">
                                    <div class="panel-heading">分类</div>
                                    <div class="panel-body dept-tree">
                                        <ul id="sortTree" class="ztree"></ul>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-10 col-sm-9">
                                <div class="row">
                                    <div class="col-sm-3">
                                        <#NameCon id="condition" name="名称" />
                                    </div>
                                    <div class="col-sm-3">
                                        <#button name="搜索" icon="fa-search" clickFun="Commodity.search()"/>
                                    </div>
                                </div>
                                <div class="hidden-xs" id="CommodityTableToolbar" role="group">
                                    @if(shiro.hasPermission("/commodity/add")){
                                    <#button name="添加" icon="fa-plus" clickFun="Commodity.openAddCommodity()"/>
                                    @}
                                    @if(shiro.hasPermission("/commodity/update")){
                                    <#button name="修改" icon="fa-edit" clickFun="Commodity.openCommodityDetail()" space="true"/>
                                    @}
                                    @if(shiro.hasPermission("/commodity/delete")){
                                    <#button name="删除" icon="fa-remove" clickFun="Commodity.delete()" space="true"/>
                                    @}
                                </div>
                                <#table id="CommodityTable"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/commodity/commodity/commodity.js"></script>
@}
